package com.logic.landseaserver.persistence.write;

import com.logic.landseaserver.domain.MonthlyBill;

import java.util.HashMap;

public interface MonthlyBillWriteMapper {

    int insertSelective(MonthlyBill record);

    int updateByPrimaryKeySelective(MonthlyBill record);

	void deleteByPrimaryKey(MonthlyBill monthlyBill);

    void updateMonthlyBillStatus(Integer contractId, String billMonth);
    
    /**
     * 
     * [简要描述]：更新状态及订单编号</br>
     * [详细描述]：在支付成功后调用 </br>
     * [作者]：Aaron(2017-07-17)</br>
     *
     * @param monthlyBill
     *
     */
    void updateMonthlyBillStatusAndBillNo(MonthlyBill monthlyBill);

    void deleteByContractIdAndBillMonth(MonthlyBill monthlyBill);

    void updateMonthlyBillByOffBill(MonthlyBill monthlyBill);

    void deleteCostMBillByOffBill(HashMap map);

    void updateByMBill(MonthlyBill monthlyBill);

}